package cn.javadog.smartbreeding.core.dto;

import java.time.LocalDate;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 余勇
 */
@Data
@ApiModel("单据")
public class BillDTO {

	@ApiModelProperty("死鸡重(单位:斤*100)")
	private Integer sickChickenWeight;

	@ApiModelProperty("笼重(单位:斤*100)")
	private Integer sampleCageWeight;

	@ApiModelProperty("笼数")
	private Integer sampleCageNum;

	@ApiModelProperty("价格(单位:分/斤)")
	private Integer unitPrice;

	@ApiModelProperty(value = "销售渠道")
	private String saleChannel;

	@ApiModelProperty("售卖日期")
	private LocalDate saleDate;

	@ApiModelProperty("鸡笼组详情")
	private List<CageGroupDTO> cageGroups;

	@Data
	@ApiModel("鸡笼组")
	public static class CageGroupDTO {

		@ApiModelProperty("笼数")
		private Integer cageNum;

		@ApiModelProperty("鸡数")
		private Integer chickenNum;

		@ApiModelProperty("鸡重(单位:斤*100)")
		private Integer chickenWeight;

	}
}

